package com.ruoyi.ring.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 az_ring_device
 * 
 * @author liuwp
 * @date 2025-08-18
 */
@Data
public class RingDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备sn */
    @Excel(name = "设备sn")
    private String deviceSn;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private Long deviceNo;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String deviceModel;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String status;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 心跳时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "心跳时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date heartTime;

    /** 上次交互时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次交互时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastTime;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceSn", getDeviceSn())
            .append("deviceNo", getDeviceNo())
            .append("deviceType", getDeviceType())
            .append("deviceModel", getDeviceModel())
            .append("deviceName", getDeviceName())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .append("heartTime", getHeartTime())
            .append("lastTime", getLastTime())
            .append("userId", getUserId())
            .toString();
    }
}
